package com.pro.service.imple;

import com.pro.mapper.LoginRecordMapper;
import com.pro.pojo.LoginRecord;
import com.pro.service.LoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginRecordServiceImple implements LoginRecordService {

    @Autowired
    private LoginRecordMapper loginRecordMapper;

    @Override
    public List<LoginRecord> getLoginRecordAll() {
        return loginRecordMapper.getLoginRecordAll();
    }

    @Override
    public boolean addLoginRecord(LoginRecord loginRecord) {
        return loginRecordMapper.addLoginRecord(loginRecord);
    }

    @Override
    public List<LoginRecord> getLoginRecords(Integer account) {
        return loginRecordMapper.getLoginRecords(account);
    }

    @Override
    public String getLastLoginRecord() {
        return loginRecordMapper.getLastLoginRecord();
    }
}
